<div class="page" data-page="productDetail" id="productDetail">
	<div class="advertisement-title">
		<div class="advertisement-title-tip">
			<a href="javascript:void(0)" class="productManage" id="">产品管理</a>&nbsp;&gt;&nbsp; 产品详情
		</div>
		<a id="productDetailEdit" class="advertisement-release-button">编辑</a>
	</div>
	<div class="productContent">
		<input type="hidden" name="fileUuids" />
		<div>
			<div class="inputsLine">
				<div>产品编号：
					<input disabled="disabled" name="productNumber" class=".w200" type="text" />
				</div>
				<div>产品名称：
					<input disabled="disabled" name="productName" class=".w200" type="text" />
				</div>
				<div>适用企业：
					<input disabled="disabled" id="" name="enterpriseName" type="text" />
					<input disabled="disabled" id="" name="enterpriseId" type="hidden" />
				</div>
			</div>
			<div class="inputsLine">
				<div>产品费率(%)：
					<input disabled="disabled" name="interest" class=".w200" type="text" />
				</div>
				<div>起始时间：
					<input disabled="disabled" id="startDate" name="startDate" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd',isShowClear:false,readOnly:true,maxDate:'#F{$dp.$D(\'endDate\',{d:0})}'})" class=".w200" type="text" />
				</div>
				<div>截止时间：
					<input disabled="disabled" id="endDate" name="endDate" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd',isShowClear:false,readOnly:true,minDate:'#F{$dp.$D(\'startDate\',{d:1})}'})" class=".w200" type="text" />
				</div>
			</div>
			<div class="inputsLine">
				<div>融资天数：
					<input disabled="disabled" name="minDays" style="width: 70px;" type="text" />&nbsp;--&nbsp;
					<input disabled="disabled" name="maxDays" style="width: 68px;" type="text" />
				</div>
				<div>产品类型：
					<select disabled="disabled" name="productType">
						<option>请选择产品类型</option>
						<option value="2">舱单质押</option>
						<option value="3">仓储质押</option>
						<option value="1">舱单代采</option>
						<option value="4">运费保理</option>
						<option value="5">仓储代采</option>
						<option value='6'>代销</option>
					</select>
				</div>
				<div>计算方式：
					<select disabled="disabled" name="loanMethod" isNull="1" codeName="产品类型">
						<option value="1">按日计息</option>
						<option value="2">固定计息</option>
					</select>
				</div>
			</div>
			<div class="inputsLine">
				<div>赎货预留天数：
					<input disabled="disabled" type="text" name="distrain" />
				</div>
				<div>是否保证金：
					<input disabled="disabled" value="1" class="bail" name="bail" type="radio" checked="checked" />是&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
					<input disabled="disabled" value="0" class="bail" name="bail" type="radio" />否
				</div>
				<div class="bailRate">保证金比例(%)：
					<input disabled="disabled" name="bailRate" onkeyup="value=value.replace(/[^\d.]/g,'')" type="text" value="0" />
				</div>
			</div>
			<div class="inputsLine">
				<div>阶段结息天数：
					<input disabled="disabled" type="text" name="quarterSettlement" isNULL="1" codeName="阶段结息天数" />
				</div>
				<div class="none requireInput">
					基础天数：<input type="text" name="baseDays" isNULL="" codeName="基础天数" />
				</div>
				<div>
					最低利息(%)：<input type="text" name="lowestInterest" isNULL="" codeName="最低利息" />
				</div>
			</div>
			<div class="inputsLine" style="display: block; text-align: right; margin-right: 194px;">
				<span style="vertical-align: top;">产品介绍：</span>
				<textarea disabled="disabled" name="description"></textarea>
			</div>
			<div class="inputsLine fs">
				产品附件：
				<input type="hidden" name="fileUuids" id="productDetailIntroUuid" />
			</div>
			
			<div class="inputsLine fs1">
				合同范本：
				<input type="hidden" name="sampleUuids" id="productDetailIntroUuid1" />
			</div>
		</div>

		<div class="chargeNav">
			<a href="javascript:void(0);" id="detailContent1" class="chargeNavActive" expenseType="1">提前罚息</a>
			<a href="javascript:void(0);" id="detailContent2" expenseType="2">延期计息</a>
			<a href="javascript:void(0);" id="detailContent3" expenseType="3">费用项目</a>
			<a href="javascript:void(0);" id="detailContent4" expenseType="4">预警方案</a>
		</div>

		<div class="detailContent detailContent1">
			<table class="table" id="detailListBody1">
			</table>
			<script type="text/template" id="detailListTpl1">
				<tr class="table_title">
					<th width="25%">计算方式</th>
					<th width="25%">计算日期区间</th>
					<th width="25%">服务费</th>
					<th width="25%">操作</th>
				</tr>
				{@each datas as it} {@each it.aheadInterests as item}
				<tr class="tr_style table-data" productExpenseId="${item.productExpenseId}">
					<td>${getValueByKey(27, item.expenseMethod)}</td>
					<td>第${item.startDay}~${item.endDay}天</td>
					<td>${item.amount}%</td>
					<td><a class="chargeDetailDelete">删除</a></td>
				</tr>
				{@/each} {@/each}
			</script>
		</div>

		<div class="detailContent detailContent2 none">
			<table class="table" id="detailListBody2">
			</table>
			<script type="text/template" id="detailListTpl2">
				<tr class="table_title">
					<th width="25%">计算方式</th>
					<th width="25%">计算日期区间</th>
					<th width="25%">服务费</th>
					<th width="25%">操作</th>
				</tr>
				{@each datas as it} {@each it.overdueInterests as item}
				<tr class="tr_style table-data" productExpenseId="${item.productExpenseId}">
					<td>${getValueByKey(27, item.expenseMethod)}</td>
					<td>第${item.startDay}~${item.endDay}天</td>
					<td>${item.amount}%</td>
					<td><a class="chargeDetailDelete">删除</a></td>
				</tr>
				{@/each} {@/each}
			</script>
		</div>

		<div class="detailContent detailContent3 none">
			<table class="table" id="detailListBody3">
			</table>
			<div id="productDetailPage" class="pagenation"></div>
			<script type="text/template" id="detailListTpl3">
				<tr class="table_title">
					<th width="20%">费用名称</th>
					<th width="10%">计算方式</th>
					<th width="15%">货类</th>
					<th width="15%">货名</th>
					<th width="10%">箱型</th>
					<th width="10%">尺寸</th>
					<th width="10%">费用</th>
					<th width="10%">操作</th>
				</tr>
				{@each datas as it}
				<tr class="tr_style table-data" productExpenseId="${it.productExpenseId}">
					<td>${it.expenseName}</td>
					<td>${getValueByKey(27, it.expenseMethod)}</td>
					<td>${it.categoryName}</td>
					<td>${it.bulkstockName}</td>
					<td>${it.model}</td>
					<td>${it.dimension}</td>
					<td>${it.amount}</td>
					<td><a class="chargeDetailDelete">删除</a></td>
				</tr>
				{@/each}
			</script>
		</div>
		
		<!--预警方案-->
		<div class="detailContent detailContent4 none">
			<table class="table" id="detailListBody4">
			</table>
			<div id="chargePage" class="pagenation"></div>
			<script type="text/template" id="detailListTpl4">
				<tr class="table_title">
					<th>方案名称</th>
					<th>预警因素</th>
					<th>处理频度</th>
					<th>生成时间</th>
					<th>操作</th>
				</tr>
				{@each datas as it}
				{@each it.schemes as item}
				<tr productId="${it.productId}" schemeId="${item.schemeId}">
					<td>${item.schemeName}</td>
					<td>${getValueByKey(62, item.factor)}</td>
					<td>${getValueByKey(60, item.frequency)}</td>
					<td>${item.createDateTime}</td>
					<td>
						<a href="javascript:void(0)" class="schemeDetail">详情</a>
					</td>
				</tr>
				{@/each}
				{@/each}
			</script>
		</div>
	</div>
</div>